<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/jsp/taglibs-nojs-nocss.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
//	String id = request.getParameter("id");

%>


<div id="pop_up_content">
	<div class="tooltip interrogation">
    	<ul>
        	<li class="interrogation_text">确认要删除吗？</li>
            <li class="tooltip_btn">
               <input type="button" value="确定" class="btn" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'" onclick="removeTr();">
               <input type="button" value="取消" class="btn" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'" onclick="hideDialog();" />
            </li>
		</ul>
    </div>
</div>
<script>
	function removeTr(){
		var _url = 'recruitRequirement/recruitRequirementAction!delData.action?id=<s:property value="id" />';
		$.ajax( {
			url : _url,
			type : 'GET',
			success : function(result){
				// 通过返回的json信息来处理
				// 通过javascript对象把返回的结果转为javascript对象
				var jsonMsgObj=new JsonMsgObj(result);
				// 通过getMessage()得到返回的异常信息,此异常信息为json格式
				var  msg=jsonMsgObj.getMessage();
			    var codeId=jsonMsgObj.getCodeid();
				var isOk=jsonMsgObj.getIsok();
				// 判断是否删除成功了，如果刷新table的区域
				if( isOk ){
					// 隐藏窗口
					hideDialog();
					loadContentLink('<%=basePath %>recruitRequirement/recruitRequirementAction!recruitRequirementList.action');
				// 如果没有删除成功,那就alert出异常的信息
				}else{
					aerouiAlert( msg );
				}
			}
		} );
		
	}
	
</script>
